/**
 * Copyright &copy; 2016-2017 <a href="http://www.smartfactorycloud.cn">SmartFactory</a> All rights reserved.
 */
package com.wfy.modules.sys.dao;

import com.wfy.common.persistence.CrudDao;
import com.wfy.modules.sys.entity.Office;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 机构DAO接口
 *
 * @author SmartFactory
 * @version 2014-05-16
 */
@Mapper
@Repository(value = "officeDao")
public interface OfficeDao extends CrudDao<Office> {


    int findOfficeByName(String officeName);

    /**
     * 获取没有通过审核的公司列表
     *
     * @return
     */
    List<Office> findNoLicenceList();

    void verity(Office office);

    Office findOfficeByUser(String officeId);

    int findOfficeBySimpleName(String simpleName);

    int findOfficeByLicense(String license);

}
